package com.ruoyi.garbage.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 挑战明细记录对象 challenge_detail
 *
 * @author 刘哲贤
 * @date 2023-01-07
 */
public class ChallengeDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 是否正确；1:正确；0:错误
     */
    @Excel(name = "是否正确；1:正确；0:错误")
    private Integer whether;

    /**
     * 问题id
     */
    @Excel(name = "问题id ")
    private Long questionId;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String garbageName;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer garbageType;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer selectedType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getWhether() {
        return whether;
    }

    public void setWhether(Integer whether) {
        this.whether = whether;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public String getGarbageName() {
        return garbageName;
    }

    public void setGarbageName(String garbageName) {
        this.garbageName = garbageName;
    }

    public Integer getGarbageType() {
        return garbageType;
    }

    public void setGarbageType(Integer garbageType) {
        this.garbageType = garbageType;
    }

    public Integer getSelectedType() {
        return selectedType;
    }

    public void setSelectedType(Integer selectedType) {
        this.selectedType = selectedType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("whether", getWhether())
                .append("questionId", getQuestionId())
                .append("garbageName", getGarbageName())
                .append("garbageType", getGarbageType())
                .append("selectedType", getSelectedType())
                .toString();
    }
}
